<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    str = " INFO \u9632\u706b\u5899\u6210\u529f\u5173\u95ed"
    str = unescape(str.replace(/\u/g, "%u"));
    console.log(str);
    str2='\u8363\u8a89\u4e4b\u5149 \u4e00';
    str2=unescape(str2.replace(/\u/g, "%u"));
    console.log(str2);
    str3='localhost:8086/tp5/public/images/imagest-7nGovj/\u515a\u5efa\u6210\u679c \u56fe\u7247.png?m=1612683453251'
    str3=encodeURI(str3)
    console.log(str3);
    str4='http://localhost:8086/tp5/public/images/imagest-7nGovj/党建成果 图片二.png?m=1612683443046'
    str4=str4.replace(' ','%20')
    console.log(str4);
    str5='http://localhost:8086/tp5/public/images/imagest-7nGovj/%E5%8F%91%E5%B1%95%E5%8E%86%E7%A8%8B.png?m=1612685977493'
    str6='http://localhost:8086/tp5/public%2Fimages%2Fimagest-7nGovj%2F%E5%8F%91%E5%B1%95%E5%8E%86%E7%A8%8B.png%3Fm%3D1612685977493'
    str6=str6.replace(/%2F/g,'/')
    str6=str6.replace(/%3F/g,'?')
    str6=str6.replace(/%3D/g,'=')
    console.log(str6);//http://localhost:8086/tp5/public/Fimages/Fimagest-7nGovj/F%E5%8F%91%E5%B1%95%E5%8E%86%E7%A8%8B.png%3Fm%3D1612685977493
    str7='http://localhost:8086/tp5/public%2Fimages%2Fimagest-7nGovj%2F%E5%8F%91%E5%B1%95%E5%8E%86%E7%A8%8B.png%3Fm%3D1612685977493'
    str7=str7.replace(/%2F/g,'/')
    str7=str7.replace(/%3F/g,'?')
    str7=str7.replace(/%3D/g,'=')
    console.log(str7);
</script>

</html>